﻿<div id="add-comp-pop">
    <div class="page-title">Add Company to Portfolio</div>
    <div class="company-title" style="padding-left: 26px;">{{addCompanyToPortfolio.companyText}}</div>
    <div style="position: relative; height: 60px;">
        <div class="sarch-top" style="margin: 0 0 0 25px; position: absolute;">
            <div class="sustainalytics-searchbox" data-searchbox-service="PortfolioSearchBoxServiceAdapter"
                 data-searchbox-searchempty data-searchbox-text="addCompanyToPortfolio.portfolioSearch">
                <input type="text" ng-maxlength="100" id="portfolioAddSearchInput" class="inp-search sustainalytics-searchbox-input" style="float: left;" ng-model="search.searchData" placeholder="Portfolio Name">
                <input type="button" class="btn-search" style="float: left;" onclick="$('#portfolioAddSearchInput').focus();" ng-click="search.search(false)">
                <div class="clear">&nbsp;</div>
                <div class="search-results" ng-show="search.isVisible">
                    <div class="search-results-inner sustainalytics-searchbox-results" style="height: 56px; overflow: auto;" ng-show="search.lastItemsCount > 0 || search.lastSkip > 0">
                        <a href="" ng-repeat="item in search.items" ng-click="addCompanyToPortfolio.selectPortfolioAdd(item); $parent.search.searchData = item.name; $parent.search.isVisible = false;"><span ng-bind-html="item.markedContent"></span> {{item.name}}</a>
                    </div>
                    <p style="text-align: center; color: white; font-weight: bold; padding:0 0 20px 0;" ng-show="search.skip == 0 && search.lastItemsCount == 0">
                        No matches found
                    </p>
                </div>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
    </div>
    <div class="clear"></div>
    <br />
    <br />
    <br />
<div style="margin-left: 26px;">
    <button ng-disabled="addCompanyToPortfolio.portfolioFilter.portfolioId == null" class="btn-green" ng-click="addCompanyToPortfolio.addCompanyToPortfolio($child.search.searchData)">Save</button>
    <button class="btn-green" ng-click="addCompanyToPortfolio.cancel()">Cancel</button>
</div>
</div>